#include <QtGui/QApplication>
#include <QMotifStyle>
#include <QCDEStyle>
#include <QPlastiqueStyle>
#include <QWindowsXPStyle>
#include <QWindowsStyle>
#include <QCoreApplication>
#include "symphonie.h"
#include <QSplashScreen>
#include "arthurwidgets.h"
#include <QFile>
#include <QTextStream>
#include "qtest.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QString text;

    //QApplication::setStyle(new QWindowsXPStyle);
    QApplication::setApplicationVersion("1.0");
    QApplication::setApplicationName("Symphonie");

    QPixmap pixmap(":/png/pics/PNG/HourGlass.png");
    QSplashScreen *splash = new QSplashScreen(pixmap);
    splash->show();
    // Loading some items
    QTextStream(&text) << QApplication::applicationName() << " " << QApplication::applicationVersion();
    splash->showMessage(text.toAscii());
    QTest::qWait(1);
   // QString mystyle = ("QTreeView {background-color: black;color: white;alternate-background-color: black;QListView {background-color: black; color: white;}QTextEdit {background-color: white;color: black;}QScrollBar:horizontal {height: 20px;} QScrollBar:vertical {width: 20px;} QTabWidget::pane {border-top: 2px solid black;}.QLabel {color: white;}.QCheckBox {color: white;}.QRadioButton{color:white;}");

    Symphonie w;


    //QStyle *arthurStyle = new ArthurStyle();
    // w.setStyle(arthurStyle);
    // QList<QWidget *> widgets = qFindChildren<QWidget *>(&w);
    // foreach (QWidget *ww, widgets)
    //     ww->setStyle(arthurStyle);
    //w.showFullScreen();

    w.show();
    splash->finish(&w);

    return a.exec();
}
